package com.training.entity;

import lombok.Data;
import java.sql.Timestamp; // Import Timestamp for createTime and updateTime

@Data
public class User {
    private Long id;
    private String username;
    private String password;
    private String role; // e.g., "TEACHER", "STUDENT", "ADMIN"
    // ADD THIS FIELD for avatar/picture:
    private String pic; // Or 'avatar' if you prefer that name
    private Timestamp createTime;
    private Integer deleted; // 0 for not deleted, 1 for deleted
    private Timestamp updateTime;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", role='" + role + '\'' +
                ", pic='" + pic + '\'' +
                ", createTime=" + createTime +
                ", deleted=" + deleted +
                ", updateTime=" + updateTime +
                '}';
    }
}
